Method for applying virtual controller in game watch

ABSTRACT

The present disclosure provides a method for applying a virtual controller in a game watch. The method includes the following steps: receiving, by a virtual controller, gesture information of a wearer, the gesture information at least including real-time spatial position data of a gyroscope, a real-time speed of current movement, an instant turning speed, an instant pitching speed, and an instant maximum speed; in a continuous moving process of the gyroscope, preprocessing, by the virtual controller, the gesture information, determining speed data generated by a small-range movement as “No real actions are generated” for culling out; further processing valid data.

TECHNICAL FIELD

The present disclosure belongs to the technical field of computers, and relates to a software control program, in particular to a method for applying a virtual controller in a game watch.

BACKGROUND

There arc two main solutions for game control in the current market: One solution is to operate the characters in a game by buttons. The other solution is to operate sensing control hardware with real actions and simulate a motion trajectory of a gyroscope in a 3D space on software. By means of optimization of a gyroscope algorithm, the same actions of the characters in a game app are realized.

1. Remote control motion sensing game solution: Game operations are achieved through buttons of a remote control, but the defect is that a real full-body sensing motion cannot be achieved.

2. Switch joy-con solution: It is achieved through buttons of a gamepad and actions.

The defects are as follows: 1) Every time the game needs to implement a new action, data of a gyroscope needs to be simulated and achieved in a 3D space. By continuously optimizing the algorithm of the hardware gyroscope and adjusting thresholds, real actions can finally be correctly displayed in software. 2) Actions are highly developed, which wastes more time.

The problems that are difficult to solve are as follows: 1) The gyroscope algorithm is difficult in processing, and it is difficult to achieve sufficient accuracy and rather difficult to be universal. 2) The solution does not jump out of the thinking limit of copying hardware actions to software actions.

SUMMARY

For the above-mentioned problems in the prior art, the present disclosure aims to provide a method for applying a virtual controller in a game watch, which culls out interference data by means of software control to optimize the algorithm accuracy.

The objective of the present disclosure is achieved by the following technical solution: a method for applying a virtual controller in a game watch. A device includes a game watch. A gyroscope and a virtual controller are arranged in the game watch. The method includes the following steps:

1) receiving, by the virtual controller, gesture information of a game watch wearer, the gesture information at least including real-time spatial position data of the gyroscope, a real-time speed of current movement, an instant turning speed, an instant pitching speed, and an instant maximum speed;

2) in a continuous moving process of the gyroscope, preprocessing, by the virtual controller, the gesture information, determining speed data generated by a small-range movement as “No real actions are generated”, and further culling out constituent data of “No real actions are generated”, the remaining data being screened-out valid data;

3) further processing the valid data, including specifically steps:

(1) dynamically generating, according to a configuration, several designated grids to form a control panel of the virtual controller;

(2) moving a control object logic of the controller;

receiving metadata of the gyroscope, recording position data and moving speed data of the gyroscope at the last time in a space, and calculating a deviation value of one displacement, thus enabling a control object to move towards a corresponding direction;

(3) triggering, by the movement of the control object, a self-defined determining result of the controller;

(4) continuously adjusting a threshold, and converting the data to generate data that can be used on a software side;

4) outputting the data to the software side, the software side being identifiable through an open source engine for displaying.

In the above method for applying the virtual controller in the game watch, in the step 1), the real-time spatial position data of the gyroscope includes a current x-coordinate numerical value and y-coordinate numerical value.

In the above method for applying the virtual controller in the game watch, in the step 2), the speed data where the real-time speed is less than 400 mm/s is set to be speed data generated by the small-range movement.

In the above method for applying the virtual controller in the game watch, in (1) of the step 3), the control panel generates a rectangular array, a transverse arrangement or a longitudinal arrangement according to a demand of the virtual controller.

In the above method for applying the virtual controller in the game watch, in (3) of the step 3), the self-defined determining result at least includes boxing, table tennis, basketball, racing bicycle, running, swimming, and boating.

In the above method for applying the virtual controller in the game watch, a technical platform of the virtual controller is cocos creator 2.4.5, and the coding language of the virtual controller is typescript.

In the above method for applying the virtual controller in the game watch, the virtual controller internally has a Bluetooth transmission port, and the gesture information is received through the Bluetooth transmission port.

In the above method for applying the virtual controller in the game watch, an electronic watch display screen is further arranged on the game watch.

Compared with the prior art, the method for applying the virtual controller in the game watch has the following beneficial effects:

1. The virtual controller can quickly identify various actions of the gyroscope and output the actions to a game.

2. Identification of multiple actions can be achieved in the game through multiple sets of controllers.

3. The virtual controller is applied to rich game action scenarios, which solves the problem in the algorithm accuracy of the gyroscope and achieves a better implementation effect.

4. The virtual controller is used as a standardized platform and can achieve external outputting.

DETAILED DESCRIPTION OF THE EMBODIMENTS

Specific implementation modes of the present disclosure are further described below by specific embodiments:

A method for applying a virtual controller in a game watch is provided. A device includes a game watch. A gyroscope and a virtual controller are arranged in the game watch. The method includes the following steps:

1) receiving, by the virtual controller, gesture information of a game watch wearer, the gesture information at least including real-time spatial position data of the gyroscope, a real-time speed of current movement, an instant turning speed, an instant pitching speed, and an instant maximum speed;

the real-time spatial position data of the gyroscope includes a current x-coordinate numerical value and y-coordinate numerical value;

2) in a continuous moving process of the gyroscope, preprocessing, by the virtual controller, the gesture information, setting speed data where a real-time speed is less than 400 mm/s to be speed data generated by a small-range movement, determining the speed data generated by the small-range movement as “No real actions are generated”, and further culling out constituent data of “No real actions are generated”, the remaining data being screened-out valid data;

3) further processing the valid data, including specifically steps:

(1) dynamically generating, according to a configuration, several designated grids to form a control panel of the virtual controller;

the control panel generating a rectangular array, a transverse arrangement or a longitudinal arrangement according to a demand of the virtual controller;

(2) moving a control object logic of the controller;

receiving metadata of the gyroscope, recording position data and moving speed data of the gyroscope at the last time in a space, and calculating a deviation value of one displacement, thus enabling a control object to move towards a corresponding direction;

(3) triggering, by the movement of the control object, to self-defined determining result of the controller;

the self-defined determining result at least including boxing, table terms, basketball, racing bicycle, running, swimming, and boating;

(4) continuously adjusting a threshold, and converting the data to generate data that can be used on a software side;

4) outputting the data to the software side, the software side being identifiable through an open source engine for displaying.

For example, the forehand drive of table tennis: in the virtual controller, by simulating actions of the table tennis in reality, when the deviation value reaches 120, a notification of a forehand drive action event will be issued. The notification of the action event can be transmitted to a game in real time, and a real-time action feedback can be acquired in the game to achieve real-time interaction in the game.

A technical platform of the virtual controller is cocos creator 2.4.5, and a technical language of the virtual controller is typescript.

The virtual controller internally has a Bluetooth transmission port, and the gesture information is received through the Bluetooth transmission port.

An electronic watch display screen is further arranged on the game watch.

Compared with the prior art, the method for applying the virtual controller in the game watch has the following beneficial effects:

1. The virtual controller can quickly identify various actions of the gyroscope and output the actions to a game.

2. Identification of multiple actions can be achieved in the game through multiple sets of controllers.

3. The virtual controller is applied to rich game action scenarios, which solves the problem in the algorithm accuracy of the gyroscope and achieves a better implementation effect.

4. The virtual controller is used as a standardized platform and can achieve external outputting.

The application of the virtual controller in the game watch is a groundbreaking technical solution. At present, in the game industry, this technology is not used to achieve operations of in-game characters by watch hardware. By means of the virtual controller, real actions of the watch can be more accurately identified, which greatly reduces misoperations and enhances the game experience,

Of course, the above description is not intended to limit the present disclosure, and the present disclosure is not limited to the above examples. Changes, modifications, additions or substitutions made by those skilled in the art within the essential scope of the present disclosure should also fall within the scope of protection of the present disclosure. 

What is claimed is:
 1. A method for applying a virtual controller in a game watch, wherein a device comprises a game watch; a gyroscope and a virtual controller are arranged in the game watch; the method comprises the following steps: step 1) receiving, by the virtual controller, gesture information of a game watch wearer, the gesture information at least comprising real-time spatial position data of the gyroscope, a real-time speed of current movement, an instant turning speed, an instant pitching speed, and an instant maximum speed; step 2) in a continuous moving process of the gyroscope, preprocessing, by the virtual controller, the gesture information, determining speed data generated by a small-range movement as “No real actions are generated”, and further culling out constituent data of “No real actions are generated”, the remaining data being screened-out valid data; step 3) further processing the valid data, comprising specifically steps: L1: dynamically generating, according to a configuration, several designated grids to form a control panel of the virtual controller; L2: moving a control object logic of the controller; receiving metadata of the gyroscope, recording position data and moving speed data of the gyroscope at the last time in a space, and calculating a deviation value of one displacement, thus enabling a control object to move towards a corresponding direction; L3: triggering, by the movement of the control object, a self-defined determining result of the controller; L4: continuously adjusting a threshold, and converting the data to generate data that can be used on a software side; step 4) outputting the data to the software side, the software side being identifiable through an open source engine for displaying.
 2. The method for applying the virtual controller in the game watch according to claim 1, wherein in the step 1), the real-time spatial position data of the gyroscope comprises a current x-coordinate numerical value and y-coordinate numerical value.
 3. The method for applying the virtual controller in the game watch according to claim 1, wherein in the step 2), the speed data where the real-time speed is less than 400 mm/s is set to be speed data generated by the small-range movement.
 4. The method for applying the virtual controller in the game watch according to claim 1, wherein in L1 of the step 3), the control panel generates a rectangular array, a transverse arrangement or a longitudinal arrangement according to a demand of the virtual controller.
 5. The method for applying the virtual controller in the game watch according to claim 1, wherein in L3 of the step 3), the self-defined determining result at least comprises boxing, table tennis, basketball, racing bicycle, running, swimming, and boating.
 6. The method for applying the virtual controller in the game watch according to claim 1, wherein a technical platform of the virtual controller is cocos creator 2.4.5, and a technical language of the virtual controller is typescript.
 7. The method for applying the virtual controller in the game watch according to claim 1, wherein the virtual controller internally has a Bluetooth transmission port, and the gesture information is received through the Bluetooth transmission port.
 8. The method for applying the virtual controller in the game watch according to claim 1, wherein an electronic watch display screen is further arranged on the game watch. 